package com.coderush.admin.sys.exception;

import com.coderush.admin.core.exception.BusinessException;

/**
 * PackageName com.stellarforce.admin.sys.exception
 *
 * @Author Eason
 * @Version v1.0
 * @ClassName CompanyException
 * @Date 2025/8/17
 * @Description TODO
 */
public class CompanyException extends BusinessException {

    public CompanyException(Integer code, String message) {
        super(code, message);
    }

    public CompanyException(String message) {
        super(message);
    }

    public static CompanyException repeatCompanyName() {
        return new CompanyException(1050, "公司名称不能重复");
    }

    public static Exception repeatCompanyCode() {
        return new CompanyException(1051, "公司编码不能重复");
    }

    public static Exception companyNotExist() {
        return new CompanyException(1052, "公司不存在");
    }
}